var i;
Object.defineProperty(exports, "__esModule", {
  value: true
});
var ResKeeper = require("AA_ResKeeper");
var _decorator = cc._decorator;
var _ccclass = _decorator.ccclass;
var _property = _decorator.property;

var _def_DingbuShipei = function (e) {
  function _creator() {
    var t = null !== e && e.apply(this, arguments) || this;
    t.linpinShiPei = 0;
    t.deftop = 0;
    return t;
  }
  __extends(_creator, e);
  _creator.prototype.onEnable = function () {
    var e = this;
    this.scheduleOnce(function () {
      var t = e.node.getComponent(cc.Widget);
      if (t) {
        0 == e.deftop && (e.deftop = t.top);
        var o = e.deftop;
        if (cc.winSize.height / cc.winSize.width > 2) {
          t.top = o + e.linpinShiPei;
          t.updateAlignment();
        }
      }
    });
  };
  __decorate([_property()], _creator.prototype, "linpinShiPei", undefined);
  return __decorate([_ccclass], _creator);
}(ResKeeper.default);
exports.default = _def_DingbuShipei;